﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000341 RID: 833
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ComposeItemCsReq : IMessage<ComposeItemCsReq>, IMessage, IEquatable<ComposeItemCsReq>, IDeepCloneable<ComposeItemCsReq>, IBufferMessage
	{
		// Token: 0x17000AD5 RID: 2773
		// (get) Token: 0x06002571 RID: 9585 RVA: 0x0006975B File Offset: 0x0006795B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ComposeItemCsReq> Parser
		{
			get
			{
				return ComposeItemCsReq._parser;
			}
		}

		// Token: 0x17000AD6 RID: 2774
		// (get) Token: 0x06002572 RID: 9586 RVA: 0x00069762 File Offset: 0x00067962
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ComposeItemCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000AD7 RID: 2775
		// (get) Token: 0x06002573 RID: 9587 RVA: 0x00069774 File Offset: 0x00067974
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ComposeItemCsReq.Descriptor;
			}
		}

		// Token: 0x06002574 RID: 9588 RVA: 0x0006977B File Offset: 0x0006797B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeItemCsReq()
		{
		}

		// Token: 0x06002575 RID: 9589 RVA: 0x00069784 File Offset: 0x00067984
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeItemCsReq(ComposeItemCsReq other) : this()
		{
			this.count_ = other.count_;
			this.composeId_ = other.composeId_;
			this.composeItemList_ = ((other.composeItemList_ != null) ? other.composeItemList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002576 RID: 9590 RVA: 0x000697DC File Offset: 0x000679DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ComposeItemCsReq Clone()
		{
			return new ComposeItemCsReq(this);
		}

		// Token: 0x17000AD8 RID: 2776
		// (get) Token: 0x06002577 RID: 9591 RVA: 0x000697E4 File Offset: 0x000679E4
		// (set) Token: 0x06002578 RID: 9592 RVA: 0x000697EC File Offset: 0x000679EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Count
		{
			get
			{
				return this.count_;
			}
			set
			{
				this.count_ = value;
			}
		}

		// Token: 0x17000AD9 RID: 2777
		// (get) Token: 0x06002579 RID: 9593 RVA: 0x000697F5 File Offset: 0x000679F5
		// (set) Token: 0x0600257A RID: 9594 RVA: 0x000697FD File Offset: 0x000679FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ComposeId
		{
			get
			{
				return this.composeId_;
			}
			set
			{
				this.composeId_ = value;
			}
		}

		// Token: 0x17000ADA RID: 2778
		// (get) Token: 0x0600257B RID: 9595 RVA: 0x00069806 File Offset: 0x00067A06
		// (set) Token: 0x0600257C RID: 9596 RVA: 0x0006980E File Offset: 0x00067A0E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemCostData ComposeItemList
		{
			get
			{
				return this.composeItemList_;
			}
			set
			{
				this.composeItemList_ = value;
			}
		}

		// Token: 0x0600257D RID: 9597 RVA: 0x00069817 File Offset: 0x00067A17
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ComposeItemCsReq);
		}

		// Token: 0x0600257E RID: 9598 RVA: 0x00069828 File Offset: 0x00067A28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ComposeItemCsReq other)
		{
			return other != null && (other == this || (this.Count == other.Count && this.ComposeId == other.ComposeId && object.Equals(this.ComposeItemList, other.ComposeItemList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600257F RID: 9599 RVA: 0x00069888 File Offset: 0x00067A88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Count != 0U)
			{
				num ^= this.Count.GetHashCode();
			}
			if (this.ComposeId != 0U)
			{
				num ^= this.ComposeId.GetHashCode();
			}
			if (this.composeItemList_ != null)
			{
				num ^= this.ComposeItemList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002580 RID: 9600 RVA: 0x000698F6 File Offset: 0x00067AF6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002581 RID: 9601 RVA: 0x000698FE File Offset: 0x00067AFE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002582 RID: 9602 RVA: 0x00069908 File Offset: 0x00067B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Count != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Count);
			}
			if (this.ComposeId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.ComposeId);
			}
			if (this.composeItemList_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.ComposeItemList);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002583 RID: 9603 RVA: 0x00069980 File Offset: 0x00067B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Count != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Count);
			}
			if (this.ComposeId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ComposeId);
			}
			if (this.composeItemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ComposeItemList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002584 RID: 9604 RVA: 0x000699F0 File Offset: 0x00067BF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ComposeItemCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Count != 0U)
			{
				this.Count = other.Count;
			}
			if (other.ComposeId != 0U)
			{
				this.ComposeId = other.ComposeId;
			}
			if (other.composeItemList_ != null)
			{
				if (this.composeItemList_ == null)
				{
					this.ComposeItemList = new ItemCostData();
				}
				this.ComposeItemList.MergeFrom(other.ComposeItemList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002585 RID: 9605 RVA: 0x00069A6C File Offset: 0x00067C6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002586 RID: 9606 RVA: 0x00069A78 File Offset: 0x00067C78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 32U)
				{
					if (num != 80U)
					{
						if (num != 114U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.composeItemList_ == null)
							{
								this.ComposeItemList = new ItemCostData();
							}
							input.ReadMessage(this.ComposeItemList);
						}
					}
					else
					{
						this.ComposeId = input.ReadUInt32();
					}
				}
				else
				{
					this.Count = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000F19 RID: 3865
		private static readonly MessageParser<ComposeItemCsReq> _parser = new MessageParser<ComposeItemCsReq>(() => new ComposeItemCsReq());

		// Token: 0x04000F1A RID: 3866
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F1B RID: 3867
		public const int CountFieldNumber = 4;

		// Token: 0x04000F1C RID: 3868
		private uint count_;

		// Token: 0x04000F1D RID: 3869
		public const int ComposeIdFieldNumber = 10;

		// Token: 0x04000F1E RID: 3870
		private uint composeId_;

		// Token: 0x04000F1F RID: 3871
		public const int ComposeItemListFieldNumber = 14;

		// Token: 0x04000F20 RID: 3872
		private ItemCostData composeItemList_;
	}
}
